Enable IGMP Layer 2 Querier Address

To use the IGMP Layer 2 Querier feature you must designate the IGMP Layer 2 Querier source IP address, the address the system uses in the query message.

Before you begin

  • Enable IGMP Layer 2 Querier.

About this task

You must configure the IGMP Layer 2 Querier address to an IP address in the IP subnet that IGMP hosts, and to which IGMP snoopers in the VLAN belong.

The default IP address is 0.0.0.0 when the IGMP Layer 2 Querier is disabled.

Procedure

  1. Enter VLAN Interface Configuration mode:

    enable

    configure terminal

    interface vlan <1–4059>

  2. Enable the IGMP Layer 2 Querier address:

    ip igmp snoop-querier-addr {A.B.C.D}

  3. Verify the configuration:

    show ip igmp snooping [vrf WORD<1–16>] [vrfids WORD<0–512>

Example

Enable the IGMP Layer 2 Querier feature for VLAN 4, and configure the querier address. Verify the configuration.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#interface vlan 4
Switch:1(config-if)#ip igmp snoop-querier
Switch:1(config-if)#ip igmp snoop-querier-addr 192.0.2.1
Switch:1#show ip igmp snooping

================================================================================
                          Igmp Snooping - GlobalRouter
================================================================================
IFINDEX SNOOP   PROXY   SSM     STATIC           ACTIVE           MROUTER
        ENABLE  SNOOP   SNOOP   MROUTER          MROUTER          EXPIRATION
                ENABLE  ENABLE  PORTS            PORTS            TIME
--------------------------------------------------------------------------------
V2      false   false   false                                     0
V3      false   false   false                                     0
V4      true    false   false                                     0
V200    false   false   false                                     0

IFINDEX SNOOP   CONFIGURED      DYNAMIC   COMPATIBILITY
        QUERIER QUERIER         DOWNGRADE MODE
        ENABLE  ADDRESS         VERSION
--------------------------------------------------------------------------------
V2      false   0.0.0.0         enable    disable
V3      false   0.0.0.0         enable    disable
V4      true    192.0.2.1       enable    disable
V200    false   0.0.0.0         enable    disable

4 out of 4 entries displayed